package com.xiaorna.springboot08test.controller;

import com.xiaoran.springbootautofiguration.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Controller
@ResponseBody
public class HelloController {
    @Autowired
    HelloService helloService;

    @GetMapping("/")
    public String test1(){
        String  xx=helloService.test1();
        return xx;
    }
}
